package com.clk.portfoy.complib.portfoy.izleme;

import javax.swing.JScrollPane;
import javax.swing.border.EtchedBorder;

import com.clk.desktop.gui.components.basic.ClkPanel;
import com.clk.portfoy.PortfoyStatics;
import com.clk.portfoy.classlib.portfoy.InfPortfoyObserver;
import com.clk.portfoy.classlib.portfoy.Portfoy;
import com.clk.portfoy.complib.portfoy.izleme.ClkIzlemeTable;

public class ClkIzlemePanel extends ClkPanel implements InfPortfoyObserver {

	private ClkIzlemeTable clkIzlemeTable;
	private JScrollPane scrollPane;
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	// ---------------------------------------------------------------------------------
	public ClkIzlemePanel() {
		super();
		initGUI();
		PortfoyStatics.PORTFOY.register(this);
		notifyObs(PortfoyStatics.PORTFOY);
	}

	// ---------------------------------------------------------------------------------
	private void initGUI() {
		setLayout(null);
		setBorder(new EtchedBorder(EtchedBorder.LOWERED));
		{
			scrollPane = new JScrollPane();
			scrollPane.setBounds(10, 5, 294, 219);
			add(scrollPane);
			{
				clkIzlemeTable = new ClkIzlemeTable();
				scrollPane.setViewportView(clkIzlemeTable);
			}
		}
	}

	// ---------------------------------------------------------------------------------

	@Override
	public void notifyObs(Portfoy p) {
		// TODO Auto-generated method stub
	}
	// ---------------------------------------------------------------------------------
}
